package mywebapps.common.jsf;

import javax.faces.context.FacesContext;

public abstract class BaseAction
{
    private FacesContext facesContext;

    public FacesContext getFacesContext()
    {
        if (facesContext == null) {
            return FacesContext.getCurrentInstance();
        }
        
        return facesContext;
    }

    public void setFacesContext(FacesContext facesContext)
    {
        this.facesContext = facesContext;
    }
}
